package co.baiku.boot.shiro.redis;

import java.util.Set;

/**
 * redisManager interface
 **/

public interface IRedisManager {

    /**
     * get value from redis
     *
     * @param key key
     * @return value
     */
    Object get(String key);

    /**
     * set value
     *
     * @param key    key
     * @param value  value
     * @param expire expire
     * @return value
     */
    void set(String key, Object value, int expire);

    /**
     * del
     *
     * @param key key
     */
    void del(String key);


    Set<String> keys(String s);
}
